package com.hz.control;

import java.util.Arrays;
import java.util.StringTokenizer;

public class Test {
    public static void main(String args[]){
   /* 	int b[][] = new int[3][4];
	String aString="@1@@2@@4@";
	String a[] =aString.split("\\@");
	for(String i: a){
	    //System.out.println(i);
	}
	int sun=0;
	String s = new String("2_8_7__4_3_9_1"); 
	StringTokenizer commaToker = new StringTokenizer(s, "_"); 
	//String[] arr = new String[commaToker.countTokens()]; 
	while(commaToker.hasMoreElements()){
	    //System.out.println(commaToker.nextToken());
	    sun=sun+Integer.parseInt(commaToker.nextToken());
	}
	System.out.println(sun);
	    //System.out.println(arr[1]);
	
	Arrays.sort(a); //首先对数组排序
        int result = Arrays.binarySearch(a, "5"); //在数组中搜索是否含有5
        System.out.print(result); //这里的结果是 3 
        System.out.println("DDDDDDD"+b.length);
        int i =8;
        while(i>0){
        	if(i<5){
        		System.out.println(i);
        		break;
        	}
        	i--;
        }
    }*/
    	   String ac ="1@1@2@20000@";
    		String b[] = ac.split("@");
    	    System.out.println(b.length);
    	    for(String v:b){
    	    	System.out.println(v);
    	    }
    	
    }
}
